#pragma once

#include <vector>
#include <string>

// CUpperView view
struct CategoryChild
{
	CString 	_child_name ;
	int			_child_id[3] ;
};

class CGridView : public CView
{
	DECLARE_DYNCREATE(CGridView)

protected:
	CGridView();           // protected constructor used by dynamic creation
	virtual ~CGridView();

public:
	void SetInfo(const std::vector<int>& info ,int id) ;
	void AddItem(const char* cat_name ,const std::vector<CategoryChild>& childs) ;

public:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	CXTPPropertyGrid m_wndProperty;

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
};


